package collection;

import java.util.Arrays;
import java.util.List;

public class ArrayToList {
    public static void main(String[] args) {
        String[] array = {"1","2","3","4","5"};
        List<String> list = Arrays.asList(array);
        System.out.println(list);

        list.set(2,"4224");
        System.out.println(Arrays.toString(array));
        System.out.println(list);
    }
}
